package com.college.eduService.client;

import com.baomidou.mybatisplus.extension.api.R;
import com.college.commonutil.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
//服务调用
@FeignClient(name  = "service-vod")//服务的名称
@Component
public interface VodClient {

    //定义调用方法的路径,一定要写全
    //PathVariable注解一定要指定参数名称,否则出错.
    //根据视频id删除阿里云视频
    @DeleteMapping("/eduvod/vod/removeAlyVideo/{id}")
    public Result removeAlyVideo(@PathVariable("id") String id);
}